#include "ktablemodel.h"
#include <QDebug>
#include <QStyleOptionButton>
#include <QCheckBox>
#include <QApplication>
#include "themeController.h"

namespace kdk {

class Q_DECL_HIDDEN KTableModelPrivate : public QObject,public ThemeController
{
    Q_OBJECT
    Q_DECLARE_PUBLIC(KTableModel)
public:
    KTableModelPrivate(KTableModel *parent);

    void changeTheme();

private:
    KTableModel *q_ptr;

};

KTableModel::KTableModel(QObject *parent)
    :QStandardItemModel(parent)
    ,d_ptr(new KTableModelPrivate(this))
{

}

QVariant KTableModel::headerData(int section, Qt::Orientation orientation, int role) const
{
    (void)section;

    if(orientation == Qt::Horizontal && role == Qt::TextAlignmentRole){
        return QVariant(Qt::AlignLeft | Qt::AlignVCenter);
    }

    return QVariant();
}

KTableModelPrivate::KTableModelPrivate(KTableModel *parent)
    :q_ptr(parent)
{

}

void KTableModelPrivate::changeTheme()
{
    Q_Q(KTableModel);
    initThemeStyle();
}

}

#include "ktablemodel.moc"
#include "moc_ktablemodel.cpp"



